@mixin wordHidden {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@mixin wordHidden_2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@mixin bord_bottom($l) {
  &:before {
    content: "";
    position: absolute;
    left: $l;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #d8d8d8;
  }
}

@mixin bord_top {
  &:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 1px;
    background-color: #d8d8d8;
  }
}

@mixin flex_align_center {
  display: flex;
  align-items: center;
}

@mixin enlarge($s) {
  &:active {
    transform: scale($s);
  }
}

@mixin iconCode($c) {
  font-family: "iconfont" !important;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  content: $c;
}

@mixin clickA() {
  &:active {
    background-color: #d8d8d8;
  }
}

@mixin wrap {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
}

@mixin transition($time) {
  transition: all $time ease;
  -webkit-transition: all $time ease;
}

@mixin flex-display {
  display: flex;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
}

@mixin flex-size($size) {
  flex: $size;
  -webkit-box-flex: $size;
  -webkit-flex: $size;
  -ms-flex: $size;
}

@mixin flex-vertical {
  flex-direction: column;
  -webkit-box-orient: vertical;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
}

@mixin flex-row {
  flex-direction: row;
  -webkit-box-orient: vertical;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
}

@mixin flex-align-center {
  align-items: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
}

@mixin flex-pack-center {
  justify-content: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
}

@mixin absolute {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

